<template>
  <div id="app">
    <el-container>
      <el-header>
        <img alt="Vue logo" src="./assets/llxy.png">
        <h3>招聘岗位薪资预测系统</h3>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-col :span="24">
            <h5>菜单选项</h5>
            <el-menu
                default-active="2"
                class="el-menu-vertical-demo"
            >
              <el-submenu index="1">
                <template slot="title">
                  <i class="el-icon-location"></i>
                  <span>查看岗位信息</span>
                </template>
                <el-menu-item-group>
                  <el-menu-item index="1-1">
                    <router-link to="/jiqixuexi">招聘岗位</router-link>
                  </el-menu-item>
                  <el-menu-item index="1-2">
                    <router-link to="/AI">数据预览</router-link>
                  </el-menu-item>
                  <el-menu-item index="1-3">
                    <router-link to="/ruanjiankaifa">开发工程师</router-link>
                  </el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <el-submenu index="2">
                <template slot="title">
                  <i class="el-icon-location"></i>
                  <span>查看图表信息</span>
                </template>
                <el-menu-item-group>
                  <el-menu-item index="2-1">
                    <router-link to="jiqiecharts">招聘岗位</router-link>
                  </el-menu-item>
                  <el-menu-item index="2-2">
                    <router-link to="AIcharts">数据预览</router-link>
                  </el-menu-item>
                  <el-menu-item index="2-3">
                    <router-link to="ruanjianecharts">开发工程师</router-link>
                  </el-menu-item>
                </el-menu-item-group>
              </el-submenu>
              <el-submenu index="3">
                <template slot="title">
                  <i class="el-icon-location"></i>
                  <span>预测岗位薪资</span>
                </template>
                <el-menu-item-group>
                  <el-menu-item index="3-1">
                    <router-link to="/jiqixuexiform">土木工程</router-link>
                  </el-menu-item>
                  <el-menu-item index="3-2">
                    <router-link to="/AIform">土建工程</router-link>
                  </el-menu-item>
                  <el-menu-item index="3-3">
                    <router-link to="/ruanjianform">给排水工程</router-link>
                  </el-menu-item>
                </el-menu-item-group>
              </el-submenu>
            </el-menu>
          </el-col>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.el-header, .el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  height: 20vh !important;
  display: flex;
}

h3 {
  margin-top: 40px;
  font-size: 40px;
  color: grey;
}

img {
  width: 300px;
  height: 90px;
  margin-top: 20px;
  margin-right: 300px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  height: 100vh;
  width: 20vw !important;
}

.el-main {
  background-color: white;
  color: #333;
  text-align: center;

}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body > .el-container {
  height: 100%;
  margin-bottom: 0; /* 移除底部的margin */
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
<script>

</script>